<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>ESM Browserlist Build Example</title>

  <!-- Bootstrap core CSS -->
  <link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
  <link href="../lib/main.css" rel="stylesheet">

  <style>
    video {
      width: 640px;
      height: 360px;
    }
  </style>
</head>
<body>

<main>
  <div class="container py-4">
    <header class="pb-3 mb-4 border-bottom">
      <img class=""
           src="../lib/img/dashjs-logo.png"
           width="200">
    </header>
    <div class="row">
      <div class="col-md-4">
        <div class="h-100 p-5 bg-light border rounded-3">
          <h3>ECMAScript Module Build Example</h3>
          <p>This sample page uses the modern ECMAScript Module build that is targeting a "browserlist" with the value set to
            "default". There are no polyfills added to the build.</p>
        </div>
      </div>
      <div class="col-md-8">
        <div class="code">
          <video autoplay preload="none" controls="true">
          </video>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <div id="code-output"></div>
      </div>
    </div>
    <footer class="pt-3 mt-4 text-muted border-top">
      &copy; DASH-IF
    </footer>
  </div>
</main>
<script class="code" type="module">
  import { MediaPlayer } from '../../dist/modern/esm/dash.all.min.js';

  const player = MediaPlayer().create();
  player.initialize(document.querySelector('video'), 'https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd', true);
</script>
<script src="../highlighter.js"></script>
</body>
</html>
